/////////////////////////////////////////////////////////////////////////////
// Name:        
// Purpose:     
// Author:      yospaly
// Modified by: 
// Created:     26/12/2008 17:21:02
// RCS-ID:      
// Copyright:   Copyright (C) 2008, yospaly
// Licence:     
/////////////////////////////////////////////////////////////////////////////

// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

////@begin includes
////@end includes

#include "app_resources.h"
#include <wx/xrc/xmlres.h>

////@begin XPM images
#include "../res/16x16/package-supported.xpm"
#include "../res/16x16/package-install.xpm"
#include "../res/16x16/package-reinstall.xpm"
#include "../res/16x16/package-upgrade.xpm"
#include "../res/16x16/package-remove.xpm"
#include "../res/16x16/package-purge.xpm"
////@end XPM images

/*!
 * Resource functions
 */

////@begin AppResources resource functions

/*!
 * Menu creation function for ID_PKGOP_MENU
 */

wxMenu* AppResources::CreatePkgOpMenu()
{
    wxMenu* itemMenu1 = new wxMenu;
    {
        wxMenuItem* menuItem = new wxMenuItem(itemMenu1, ID_UNMARK_MENUITEM, _("Un&mark"), wxEmptyString, wxITEM_NORMAL);
        wxBitmap bitmap(GetBitmapResource(wxT("../res/16x16/package-supported.png")));
        menuItem->SetBitmap(bitmap);
        itemMenu1->Append(menuItem);
    }
    {
        wxMenuItem* menuItem = new wxMenuItem(itemMenu1, ID_INSTALL_MENUITEM, _("Mark for &Installation"), wxEmptyString, wxITEM_NORMAL);
        wxBitmap bitmap(GetBitmapResource(wxT("../res/16x16/package-install.png")));
        menuItem->SetBitmap(bitmap);
        itemMenu1->Append(menuItem);
    }
    {
        wxMenuItem* menuItem = new wxMenuItem(itemMenu1, ID_REINSTALL_MENUITEM, _("Mark for &Reinstallation"), wxEmptyString, wxITEM_NORMAL);
        wxBitmap bitmap(GetBitmapResource(wxT("../res/16x16/package-reinstall.png")));
        menuItem->SetBitmap(bitmap);
        itemMenu1->Append(menuItem);
    }
    {
        wxMenuItem* menuItem = new wxMenuItem(itemMenu1, ID_UPGRADE_MENUITEM, _("Mark for &Upgrade"), wxEmptyString, wxITEM_NORMAL);
        wxBitmap bitmap(GetBitmapResource(wxT("../res/16x16/package-upgrade.png")));
        menuItem->SetBitmap(bitmap);
        itemMenu1->Append(menuItem);
    }
    {
        wxMenuItem* menuItem = new wxMenuItem(itemMenu1, ID_REMOVAL_MENUITEM, _("Mark for Re&moval"), wxEmptyString, wxITEM_NORMAL);
        wxBitmap bitmap(GetBitmapResource(wxT("../res/16x16/package-remove.png")));
        menuItem->SetBitmap(bitmap);
        itemMenu1->Append(menuItem);
    }
    {
        wxMenuItem* menuItem = new wxMenuItem(itemMenu1, ID_COMPLETE_REMOVAL_MENUITEM, _("Mark for &Complete Removal"), wxEmptyString, wxITEM_NORMAL);
        wxBitmap bitmap(GetBitmapResource(wxT("../res/16x16/package-purge.png")));
        menuItem->SetBitmap(bitmap);
        itemMenu1->Append(menuItem);
    }
    return itemMenu1;
}

////@end AppResources resource functions

/*!
 * Get bitmap resources
 */

wxBitmap AppResources::GetBitmapResource( const wxString& name )
{
    // Bitmap retrieval
////@begin AppResources bitmap retrieval
    wxUnusedVar(name);
    if (name == _T("../res/16x16/package-supported.png"))
    {
        wxBitmap bitmap(package_supported_xpm);
        return bitmap;
    }
    else if (name == _T("../res/16x16/package-install.png"))
    {
        wxBitmap bitmap(package_install_xpm);
        return bitmap;
    }
    else if (name == _T("../res/16x16/package-reinstall.png"))
    {
        wxBitmap bitmap(package_reinstall_xpm);
        return bitmap;
    }
    else if (name == _T("../res/16x16/package-upgrade.png"))
    {
        wxBitmap bitmap(package_upgrade_xpm);
        return bitmap;
    }
    else if (name == _T("../res/16x16/package-remove.png"))
    {
        wxBitmap bitmap(package_remove_xpm);
        return bitmap;
    }
    else if (name == _T("../res/16x16/package-purge.png"))
    {
        wxBitmap bitmap(package_purge_xpm);
        return bitmap;
    }
    return wxNullBitmap;
////@end AppResources bitmap retrieval
}

/*!
 * Get icon resources
 */

wxIcon AppResources::GetIconResource( const wxString& name )
{
    wxUnusedVar(name);
    // Icon retrieval
////@begin AppResources icon retrieval
    wxUnusedVar(name);
    return wxNullIcon;
////@end AppResources icon retrieval
}
